package singotonPattern;

//1. 饿汉式单例模式
public class Singleton01 {
    private static Apple apple = new Apple();

    public static Apple getInstance() {
        return apple;
    }
}
